package com.herui.iot.request;

import com.herui.sdyu_lib.http.annotation.BodyType;
import com.herui.sport_care.data.check.BetaDataFileUploadRequest;
import com.herui.sport_care.data.check.BetaDataUploadForm;

import java.util.Map;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;

/**
 * Created by amanda.shan on 2022/12/4.
 */
@BodyType(bodyDateFormat = "yyyy-MM-dd HH:mm:ss")
public interface CheckRequest {

    // 查询等待被测试者列表
    @POST("/api/evaluationScheme/findAwaitItemList")
    Call<String> findAwaitItemList(@Body Map<String, Object> map);

    // 查询可用设备列表
    @POST("/api/equipment/evaluatorApp/availableEquipmentList")
    Call<String> getAvailableEquipmentList(@Body Map<String, Object> map);

    // 获取oss凭证
    @GET("/api/oss/sts/tangsan")
    Call<String> getOssToken();

    //  用户和设备绑定
    @POST("/api/equipment/evaluatorApp/equipmentUserSchemeBind")
    Call<String> equipmentUserSchemeBind(@Body Map<String, Object> map);

    //  用户和设备解绑
    @POST("/api/equipment/evaluatorApp/equipmentUserSchemeUnBind")
    Call<String> equipmentUserSchemeUnBind(@Body Map<String, Object> map);

    //  用户和设备解绑
    @POST("/api/BetaData/evaluatorApp/dataUpload")
    Call<String> dataUpload(@Body BetaDataUploadForm betaDataUploadForm);

    /**
     * 查询协议详情
     * @param agreementId   协议ID
     * @return
     */
    @GET("/api/agreement/query/{agreementId}")
    Call<String> getAgreement(@Path("agreementId") Long agreementId);

    /**
     * 文件上传
     * @return
     */
    @POST("api/BetaData/evaluatorApp/fileDataUpload")
    Call<String> fileDataUpload(@Body BetaDataFileUploadRequest betaDataFileUploadRequest);

    /**
     * 自觉最大用力程度(疲劳程度)上传
     * @param map
     * @return
     */
    @POST("api/BetaData/evaluatorApp/uploadRpe")
    Call<String> uploadRpe(@Body Map<String, Object> map);
}
